﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using MeizuSDK.Presentation;
using System.Drawing;
using MeizuSDK.Core;
using System.IO;

namespace Demo
{
    class PictureWindow : DemoWindowBase
    {
        PictureBox picture = new PictureBox();
        //PictureBoxEx picture = new PictureBoxEx();

        public PictureWindow()
        {
            picture.Location = new Point(0, 0);
            picture.Size = new Size(Screen.ClientWidth, Screen.ClientHeight - ToolBar.HEIGHT);
            picture.LoadFromFile(Path.Combine(Application.StartupPath, "Images\\m8.jpg"));
            picture.PaintMode = MeizuSDK.Drawing.PaintMode.Normal;
            //picture.SizeMode = PictureBoxSizeMode.CenterImage;
            Controls.Add(picture);
        }
    }
}
